# -*- encoding:utf-8 -*-
from mako import runtime, filters, cache
UNDEFINED = runtime.UNDEFINED
__M_dict_builtin = dict
__M_locals_builtin = locals
_magic_number = 5
_modified_time = 1285719839.5750129
_template_filename='/Users/joeldunham/old/onlinelinguisticdatabase/templates/derived/people/researcher/settings.html'
_template_uri='/derived/people/researcher/settings.html'
_template_cache=cache.Cache(__name__, _modified_time)
_source_encoding='utf-8'
from webhelpers.html import escape
_exports = ['heading']


def _mako_get_namespace(context, name):
    try:
        return context.namespaces[(__name__, name)]
    except KeyError:
        _mako_generate_namespaces(context)
        return context.namespaces[(__name__, name)]
def _mako_generate_namespaces(context):
    # SOURCE LINE 2
    ns = runtime.Namespace(u'markup', context._clean_inheritance_tokens(), templateuri=u'/base/markup.html', callables=None, calling_uri=_template_uri, module=None)
    context.namespaces[(__name__, u'markup')] = ns

def _mako_inherit(template, context):
    _mako_generate_namespaces(context)
    return runtime._inherit_from(context, u'/base/index.html', _template_uri)
def render_body(context,**pageargs):
    context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        _import_ns = {}
        _mako_get_namespace(context, u'markup')._populate(_import_ns, [u'*'])
        url = _import_ns.get('url', context.get('url', UNDEFINED))
        c = _import_ns.get('c', context.get('c', UNDEFINED))
        app_globals = _import_ns.get('app_globals', context.get('app_globals', UNDEFINED))
        session = _import_ns.get('session', context.get('session', UNDEFINED))
        __M_writer = context.writer()
        # SOURCE LINE 1
        __M_writer(u'\n')
        # SOURCE LINE 2
        __M_writer(u'\n\n\n')
        # SOURCE LINE 9
        __M_writer(u'\n\n<p>This page lists the settings specific to user ')
        # SOURCE LINE 11
        __M_writer(escape(c.researcher.firstName))
        __M_writer(u' ')
        # SOURCE LINE 12
        __M_writer(escape(c.researcher.lastName))
        __M_writer(u'</p>\n\n')
        # SOURCE LINE 14
        if ('user_username' in session and session['user_username'] == \
    c.researcher.username) or ('user_role' in session and session['user_role'] \
    == 'administrator'):
            # SOURCE LINE 17
            __M_writer(u'<a href="')
            __M_writer(escape(url(controller='researcher', action='editsettings', \
   id=c.researcher.id)))
            # SOURCE LINE 18
            __M_writer(u'" class="buttonLink" title="Edit ')
            # SOURCE LINE 19
            __M_writer(u'   ')
            __M_writer(escape(c.researcher.firstName))
            __M_writer(u' ')
            __M_writer(escape(c.researcher.lastName))
            __M_writer(u'\'s settings">edit</a>\n')
            pass
        # SOURCE LINE 21
        __M_writer(u'\n<table class="infoTable">\n\n <tr>\n  <td>\n   Default Collection View\n   <p class=\'explanation\'>How the content of Collections should be displayed\n   for ')
        # SOURCE LINE 28
        __M_writer(escape(c.researcher.firstName))
        __M_writer(u' ')
        __M_writer(escape(c.researcher.lastName))
        __M_writer(u'</p>\n  </td>\n  <td>\n   ')
        # SOURCE LINE 31
        __M_writer(escape(c.researcher.collectionViewType))
        __M_writer(u"\n  </td>\n </tr>\n\n <tr>\n  <td>\n   Input Orthography\n   <p class='explanation'>The orthography that ")
        # SOURCE LINE 38
        __M_writer(escape(c.researcher.firstName))
        __M_writer(u' ')
        # SOURCE LINE 39
        __M_writer(u'   ')
        __M_writer(escape(c.researcher.lastName))
        __M_writer(u' will use to enter and search for object ')
        # SOURCE LINE 40
        __M_writer(u"   language data.  Note: if unspecified, system's default input orthography ")
        # SOURCE LINE 41
        __M_writer(u'   will be used.</p>\n  </td>\n  <td>\n')
        # SOURCE LINE 44
        if c.researcher.inputOrthography:
            # SOURCE LINE 45
            __M_writer(u'   ')
            __M_writer(escape(app_globals.OLOrthographies[c.researcher.inputOrthography][0]))
            __M_writer(u'\n')
            # SOURCE LINE 46
        else:
            # SOURCE LINE 47
            __M_writer(u'   unspecified (system default is ')
            __M_writer(escape(app_globals.defaultInputOrthography[0]))
            __M_writer(u')\n')
            pass
        # SOURCE LINE 49
        __M_writer(u"  </td>\n </tr>\n\n <tr>\n  <td>\n   Output Orthography\n   <p class='explanation'>The orthography that will be used to display object ")
        # SOURCE LINE 56
        __M_writer(u'   language data to ')
        __M_writer(escape(c.researcher.firstName))
        __M_writer(u' ')
        __M_writer(escape(c.researcher.lastName))
        __M_writer(u'.  Note: ')
        # SOURCE LINE 57
        __M_writer(u"   if unspecified, the system's default output orthography will be used.</p>\n   </p>\n  </td>\n  <td>\n")
        # SOURCE LINE 61
        if c.researcher.outputOrthography:
            # SOURCE LINE 62
            __M_writer(u'   ')
            __M_writer(escape(app_globals.OLOrthographies[c.researcher.outputOrthography][0]))
            __M_writer(u'\n')
            # SOURCE LINE 63
        else:
            # SOURCE LINE 64
            __M_writer(u'   unspecified (system default is ')
            __M_writer(escape(app_globals.defaultOutputOrthography[0]))
            __M_writer(u')\n')
            pass
        # SOURCE LINE 66
        __M_writer(u'  </td>\n </tr>\n\n</table>\n\n')
        # SOURCE LINE 71
        if ('user_username' in session and session['user_username'] == \
    c.researcher.username) or ('user_role' in session and session['user_role'] \
    == 'administrator'):
            # SOURCE LINE 74
            __M_writer(u'<a href="')
            __M_writer(escape(url(controller='researcher', action='editsettings', \
   id=c.researcher.id)))
            # SOURCE LINE 75
            __M_writer(u'" class="buttonLink" title="Edit ')
            # SOURCE LINE 76
            __M_writer(u'   ')
            __M_writer(escape(c.researcher.firstName))
            __M_writer(u' ')
            __M_writer(escape(c.researcher.lastName))
            __M_writer(u'\'s settings">edit</a>\n')
            pass
        return ''
    finally:
        context.caller_stack._pop_frame()


def render_heading(context):
    context.caller_stack._push_frame()
    try:
        _import_ns = {}
        _mako_get_namespace(context, u'markup')._populate(_import_ns, [u'*'])
        c = _import_ns.get('c', context.get('c', UNDEFINED))
        __M_writer = context.writer()
        # SOURCE LINE 5
        __M_writer(u'\n    <h1 class="heading">\n     Settings for ')
        # SOURCE LINE 7
        __M_writer(escape(c.researcher.firstName))
        __M_writer(u' ')
        __M_writer(escape(c.researcher.lastName))
        __M_writer(u'\n    </h1>\n')
        return ''
    finally:
        context.caller_stack._pop_frame()


